package com.augurit.wf.app.document.entity;



import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;


@Entity
@Table(name="DOC_DOCUMENT_DETAIL")
@Cache(usage=CacheConcurrencyStrategy.READ_WRITE)
public class Document {
	
	@Id
	@Column(name="ID")
	@SequenceGenerator(name="SEQ_DOC_DOCUMENT_DETAIL", sequenceName="SEQ_DOC_DOCUMENT_DETAIL", allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="SEQ_DOC_DOCUMENT_DETAIL")
	private Long id;
	private Long cid;
	
	@Column(name="FILENAME")
	private String filename;
	private String name;
	private Date povd ;
	@Column(name="DOCTYPE")
	private String doctype;
	private String url;
	private String status;
	private String version;
	private Integer inx;
	

	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Long getCid() {
		return cid;
	}
	public void setCid(Long cid) {
		this.cid = cid;
	}
	public String getFileName() {
		return filename;
	}
	public void setFileName(String fileName) {
		this.filename = fileName;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Date getPovd() {
		return povd;
	}
	public void setPovd(Date povd) {
		this.povd = povd;
	}
	public String getDocType() {
		return doctype;
	}
	public void setDocType(String docType) {
		this.doctype = docType;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getVersion() {
		return version;
	}
	public void setVersion(String version) {
		this.version = version;
	}
	public Integer getInx() {
		return inx;
	}
	public void setInx(Integer inx) {
		this.inx = inx;
	}
	
	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}

}
